//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Core;

namespace OpenLS.Spreadsheet
{
    class RowHeightUndoUnit: IUndoUnit
    {
        public RowHeightUndoUnit(Row row)
        {
            Row = row;
            value = row.Height;
        }

        readonly Row Row;
        readonly double? value;
        #region IUndoUnit Members

        public void Do()
        {
            Row.Height = value;
        }

        public bool Merge(IUndoUnit unit)
        {
            return false;
        }

        #endregion
    }
}
